package top.tangyh.lamp.care.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

/**
 * 视图：his_patient_event 对应的 Java 实体类。
 * <p>
 * 该实体类用于存储患者事件信息，字段包括住院号、患者识别号、科室信息、床位信息、事件时间、事件类型等。
 * </p>
 */
@Data
@TableName("his_patient_event")
public class HisPatientEvent {

    @Schema(description = "自增主键")
    private Long id;

    @Schema(description = "住院号")
    private String hospitalNumber;

    @Schema(description = "患者识别号")
    private String patientIdent;

    @Schema(description = "当前科室编号")
    private String departmentNumber;

    @Schema(description = "当前科室名称")
    private String departmentName;

    @Schema(description = "病床号")
    private String bedNumber;

    @Schema(description = "事件发生时间")
    private Date recordTime;

    @Schema(description = "事件发生类型（1: 新病人安排; 2: 新病人安排取消; 3: 科室出院; 4: 科室出院当天取消; 5: 科室出院跨天取消; 6: 病区出院; 7: 病区出院当天取消; 8: 病区出院跨天取消; 22: 新病人安排跨天取消; 99: 其他操作）")
    private Integer optionType;

    @Schema(description = "数据创建时间")
    private Date createTime;

    @Schema(description = "数据更新时间")
    private Date modifyTime;
}
